\hypertarget{umask_8c}{
\section{umask.c File Reference}
\label{umask_8c}\index{umask.c@{umask.c}}
}
{\ttfamily \#include $<$stdio.h$>$}\par
{\ttfamily \#include $<$stdlib.h$>$}\par
{\ttfamily \#include $<$string.h$>$}\par
{\ttfamily \#include $<$unistd.h$>$}\par
{\ttfamily \#include $<$sys/stat.h$>$}\par
{\ttfamily \#include $<$sys/types.h$>$}\par
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{umask_8c_a57fd05f61076c9a511572f5e7174165d}{PROFILE\_\-FILE}~\char`\"{}/etc/profile\char`\"{}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
int \hyperlink{umask_8c_ad54aef3fffadcbbe77844c5a215ab020}{umask\_\-get} ()
\begin{DoxyCompactList}\small\item\em function executed to get the current umask setting \item\end{DoxyCompactList}\item 
int \hyperlink{umask_8c_aa9a3278bf56f217774ab4604f89deb9b}{umask\_\-set} (char $\ast$mask)
\begin{DoxyCompactList}\small\item\em function executed to set the umask setting \item\end{DoxyCompactList}\item 
char $\ast$ \hyperlink{umask_8c_a5d33d8c349a8da747f6e4d006f1a0753}{validateMask} (char $\ast$mask)
\begin{DoxyCompactList}\small\item\em function executed to validate a mask settings \item\end{DoxyCompactList}\item 
int \hyperlink{umask_8c_a3c04138a5bfe5d72780bb7e82a18e627}{main} (int argc, char $\ast$$\ast$argv)
\begin{DoxyCompactList}\small\item\em command main function \item\end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\begin{DoxyAuthor}{Author}
Oana Munteanu, anul 2 Informatica -\/ Engleza 
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
1.0
\end{DoxyVersion}
display and set default umask 

\subsection{Define Documentation}
\hypertarget{umask_8c_a57fd05f61076c9a511572f5e7174165d}{
\index{umask.c@{umask.c}!PROFILE\_\-FILE@{PROFILE\_\-FILE}}
\index{PROFILE\_\-FILE@{PROFILE\_\-FILE}!umask.c@{umask.c}}
\subsubsection[{PROFILE\_\-FILE}]{\setlength{\rightskip}{0pt plus 5cm}\#define PROFILE\_\-FILE~\char`\"{}/etc/profile\char`\"{}}}
\label{umask_8c_a57fd05f61076c9a511572f5e7174165d}


\subsection{Function Documentation}
\hypertarget{umask_8c_a3c04138a5bfe5d72780bb7e82a18e627}{
\index{umask.c@{umask.c}!main@{main}}
\index{main@{main}!umask.c@{umask.c}}
\subsubsection[{main}]{\setlength{\rightskip}{0pt plus 5cm}int main (int {\em argc}, \/  char $\ast$$\ast$ {\em argv})}}
\label{umask_8c_a3c04138a5bfe5d72780bb7e82a18e627}


command main function 


\begin{DoxyParams}{Parameters}
\item[{\em argc}]-\/ calling arguments counter \item[{\em $\ast$$\ast$argv}]-\/ calling arguments vector\end{DoxyParams}
\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}


\begin{DoxySeeAlso}{See also}
run command if no arguments specified 

\hyperlink{umask_8c_ad54aef3fffadcbbe77844c5a215ab020}{umask\_\-get} ();

run command if argv contains a new mask 

\hyperlink{umask_8c_aa9a3278bf56f217774ab4604f89deb9b}{umask\_\-set} (argv\mbox{[}1\mbox{]});
\end{DoxySeeAlso}


\hypertarget{umask_8c_ad54aef3fffadcbbe77844c5a215ab020}{
\index{umask.c@{umask.c}!umask\_\-get@{umask\_\-get}}
\index{umask\_\-get@{umask\_\-get}!umask.c@{umask.c}}
\subsubsection[{umask\_\-get}]{\setlength{\rightskip}{0pt plus 5cm}int umask\_\-get ()}}
\label{umask_8c_ad54aef3fffadcbbe77844c5a215ab020}


function executed to get the current umask setting 

\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{umask_8c_aa9a3278bf56f217774ab4604f89deb9b}{
\index{umask.c@{umask.c}!umask\_\-set@{umask\_\-set}}
\index{umask\_\-set@{umask\_\-set}!umask.c@{umask.c}}
\subsubsection[{umask\_\-set}]{\setlength{\rightskip}{0pt plus 5cm}int umask\_\-set (char $\ast$ {\em mask})}}
\label{umask_8c_aa9a3278bf56f217774ab4604f89deb9b}


function executed to set the umask setting 

\begin{DoxyReturn}{Returns}
0 on success or a positive int on failure 
\end{DoxyReturn}
\hypertarget{umask_8c_a5d33d8c349a8da747f6e4d006f1a0753}{
\index{umask.c@{umask.c}!validateMask@{validateMask}}
\index{validateMask@{validateMask}!umask.c@{umask.c}}
\subsubsection[{validateMask}]{\setlength{\rightskip}{0pt plus 5cm}char $\ast$ validateMask (char $\ast$ {\em mask})}}
\label{umask_8c_a5d33d8c349a8da747f6e4d006f1a0753}


function executed to validate a mask settings 


\begin{DoxyParams}{Parameters}
\item[{\em mask}]-\/ calling arguments counter\end{DoxyParams}
\begin{DoxyReturn}{Returns}
mask or NULL on error 
\end{DoxyReturn}
